<template>
  <div>
    <el-pagination
      background
      :page-size="20"
      layout="prev, pager, next"
      :total="total"
      @current-change="changePage"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  data () {
    return {
      total: 100
    }
  },
  methods: {
    changePage (currPage) {
      console.log(`当前翻到：${currPage}页`)
    }
  }
}
</script>

<style>
</style>
